import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/books',
      
      component:()=>import('@/views/books.vue'),
    },
    {
      path: '/about',

      component: () => import('../views/booksOrEit.vue'),
    },
    {
      path: '/books/:id',

      component: () => import('../views/booksOrEit.vue'),
    },
  ],
})

export default router
